/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-04-13
 * Time: 9:48
 */
public class Faculty extends Role{
    private String number;//工号
    private int year;
    private int month;
    private int day;
    private String career;//职业

    public Faculty(){}
    public Faculty(String name, int age, String number,
                   int year, int month, int day, String career){
        super(name, age);
        this.number = number;
        this.year = year;
        this.month = month;
        this.day = day;
        this.career = career;
    }
    public void show(){
        System.out.println("我是"+name+"，年龄"+age+"岁。工号是"+number+"，"
                +year+"年"+month+"月"+day+"日入职。是一名教师，"
                +career+"职称。");
    }
}
